﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Telerik.Web.UI;
using System.Data;
using System.Collections;
using KPIS.GERP.GHRMS.BLL;
using KPIS.GERP.GHRMS.IBLL;
using KPIS.GERP.GHRMS.MODEL;

namespace KPIS.GERP.GHRMS.APP.App_UI.Controls
{
    public partial class PositionTypeCombo : System.Web.UI.UserControl
    {
        private IPositionTypeBLL postypeBLL = new PositionTypeBLL();
        protected void Page_Load(object sender, EventArgs e)
        {

        }
        public void ListPositionTypeComboBox(string EmployeeTypes)
        {
            Nullable<int> empType = EmployeeTypes.Length > 0 ? Int32.Parse(EmployeeTypes) : (int?)null;
            IList<PositionTypeInfo> InfoList = postypeBLL.ListPositionTypes(empType);

            cbPositionType.DataSource = InfoList;
            cbPositionType.DataBind();
        }
    }
}